* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.9) 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 欢迎页面样式 */
.welcome-page {
    background: url('./images/safety-bg.jpg') center/cover no-repeat;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.welcome-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

/* 艺术字样式 */
.competition-title {
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

.art-text {
    font-size: 3.5em;
    font-weight: bold;
    color: #1a73e8;
    text-shadow: 
        3px 3px 0 rgba(255, 255, 255, 0.8),
        -3px -3px 0 rgba(255, 255, 255, 0.8),
        3px -3px 0 rgba(255, 255, 255, 0.8),
        -3px 3px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: 8px;
    margin: 0;
    padding: 15px;
    position: relative;
    display: inline-block;
    background: transparent;
    -webkit-text-fill-color: #1a73e8;
    animation: floatText 3s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-title {
    margin-bottom: 40px;
}

.welcome-title h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.subtitle {
    font-size: 1.4em;
    color: #000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.welcome-animation {
    margin: 40px 0;
    height: 200px;
    position: relative;
}

.safety-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: url('/c:/Users/苏桂/Desktop/国防网站/safety-h5/images/safety-icon.png') center/contain no-repeat;
    animation: float 3s ease-in-out infinite;
}

.welcome-text {
    margin: 30px 0;
    line-height: 1.8;
}

.welcome-text p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.welcome-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
    margin-top: 20px;
}

.welcome-btn:hover {
    transform: translateY(-3px);
    background: #219a52;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

h1, h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #34495e;
}

button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

button:hover {
    transform: translateY(-2px);
    background: #219a52;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #27ae60;
    width: 0;
    transition: width 0.3s ease-in-out;
}

.question-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.question {
    font-size: 1.4em;
    margin: 20px 0;
    color: #2c3e50;
}

.options {
    display: grid;
    gap: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #34495e;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.option:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.option.correct {
    background: #27ae60;
    color: white;
}

.option.wrong {
    background: #e74c3c;
    color: white;
}

.score {
    font-size: 2em;
    margin: 20px 0;
    color: #27ae60;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-section {
    margin-top: 30px;
}

.share-btn {
    background: #3498db;
}

.share-btn:hover {
    background: #2980b9;
}

/* 卡通元素样式 */
.cartoon-element {
    width: 240px;
    height: 240px;
    margin: 0 auto 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
} 